use strict;
use warnings;

use EMS::Model::Corporation;

package EMS::Model::Pilot::Schema;
use Jifty::DBI::Schema;

# Your column definitions go here.  See L<Jifty::DBI::Schema> for
# documentation about how to write column definitions.

column name =>
    label is "Name",
    is mandatory,
    is distinct,
    type is 'varchar(255)';

column password =>
    label is "Password",
    type is 'varchar(60)',
    render_as 'Password';

column corp =>
    label is "Corporation",
    refers_to EMS::Model::Corporation,
    is mandatory;

column is_ceo =>
    label is "CEO?",
    type is 'tinyint',
    default is '0';

column is_director =>
    label is "Director?",
    type is 'tinyint',
    default is '0';

package EMS::Model::Pilot;
use base qw/EMS::Record/;

# Your model-specific methods go here.

1;
